<?php
/**
 * Created by PhpStorm.
 * User: sunzexin
 * Date: 2018/2/11
 * Time: 21:55
 */

namespace App\Http\Traits;


use Illuminate\Http\Request;

trait FeedbackTrait
{
    use BaseTrait;

    // 验证秘钥
    protected $loginSession;
    // 父ID
    protected $parent_id;
    // 反馈内容
    protected $content;
    // 分页大小
    protected $limit;

    public function __construct(Request $request)
    {
        $this->loginSession = $request->input('loginSession', '');
        $this->parent_id = $request->input('parent_id', 0);
        $this->content = $request->input('content', '');
        $this->limit = $request->input('limit' , 0);
    }
}